package com.techedge.insidetrack

import java.util.Date;

class Insidetrack {

	String code
	Date schedule
	String twitterTag
	String language
	String information
	User creator
	
	static belongsTo = [User]
	
	static hasMany = [ attendees : Attendee, locations : Location, sessions : Tracksession]
	
	static constraints = {
		code(blank:false, nullable:false, matches: "#[0-9]+")
		schedule(blank:false, nullable:false)
		information(blank:true, nullable:true, size:3..500)
		language(blank:true, nullable:true)
		twitterTag(blank:true, nullable:true, matches: "#[a-zA-z1-9_]+")
	}

	String toString(){
		return code;
	}
	
	
}
